package com.ruoyi.customerSample.service.impl;


import com.ruoyi.customerSample.domain.SampleSendInstrument;
import com.ruoyi.customerSample.mapper.SampleSendInstrumentMapper;
import com.ruoyi.customerSample.service.ISampleSendInstrumentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


/**
 * 送检仪器信息明细Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-07-06
 */
@Service
public class SampleSendInstrumentServiceImpl implements ISampleSendInstrumentService
{
    @Autowired(required = false)
    private SampleSendInstrumentMapper sampleSendInstrumentMapper;

    /**
     * 查询送检仪器信息明细
     * 
     * @param id 送检仪器信息明细ID
     * @return 送检仪器信息明细
     */
    @Override
    public SampleSendInstrument selectSampleSendInstrumentById(String id)
    {
        return sampleSendInstrumentMapper.selectSampleSendInstrumentById(id);
    }

    /**
     * 查询送检仪器信息明细列表
     * 
     * @param sampleSendInstrument 送检仪器信息明细
     * @return 送检仪器信息明细
     */
    @Override
    public List<SampleSendInstrument> selectSampleSendInstrumentList(SampleSendInstrument sampleSendInstrument)
    {
        return sampleSendInstrumentMapper.selectSampleSendInstrumentList(sampleSendInstrument);
    }

    /**
     * 批量新增明细
     * @param sampleSendInstruments
     * @return
     */
    @Override
    public int batchSampleSendInstrument(List<SampleSendInstrument> sampleSendInstruments) {
        return sampleSendInstrumentMapper.batchSampleSendInstrument(sampleSendInstruments);
    }

    /**
     * 新增送检仪器信息明细
     * 
     * @param sampleSendInstrument 送检仪器信息明细
     * @return 结果
     */
    @Override
    public int insertSampleSendInstrument(SampleSendInstrument sampleSendInstrument)
    {
        return sampleSendInstrumentMapper.insertSampleSendInstrument(sampleSendInstrument);
    }

    /**
     * 修改送检仪器信息明细
     * 
     * @param sampleSendInstrument 送检仪器信息明细
     * @return 结果
     */
    @Override
    public int updateSampleSendInstrument(SampleSendInstrument sampleSendInstrument)
    {
        return sampleSendInstrumentMapper.updateSampleSendInstrument(sampleSendInstrument);
    }

    /**
     * 批量删除送检仪器信息明细
     * 
     * @param ids 需要删除的送检仪器信息明细ID
     * @return 结果
     */
    @Override
    public int deleteSampleSendInstrumentByIds(String[] ids)
    {
        return sampleSendInstrumentMapper.deleteSampleSendInstrumentByIds(ids);
    }

    /**
     * 删除送检仪器信息明细信息
     * 
     * @param id 送检仪器信息明细ID
     * @return 结果
     */
    @Override
    public int deleteSampleSendInstrumentById(String id)
    {
        return sampleSendInstrumentMapper.deleteSampleSendInstrumentById(id);
    }
}
